require 'test/unit'
require './churn.v5'

class X < Test::Unit::TestCase
	def test_remove_lines_with_strange_subsystem_name
		strange = subsystem_line('+ and *** (3) and -' , 0)
		original = [strange]
		expected = []
		assert_equal(expected, remove_lines_with_strange_subsystem_name(original))
	end

	def test_remove_lines_with_strange_subsystem_name2
		strange = subsystem_line('+ and + and ndandandand ** *0', 0)
		original = [strange]
		assert_match(/^+.*/, remove_lines_with_strange_subsystem_name(original)[0])
		puts remove_lines_with_strange_subsystem_name(original)[0]
	end

end
